<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <link rel="stylesheet" href="css/style.css"> -->
</head>

<body>
    <div class="banner">
        <ul class="banner">
            <li>
                <img src="img/狗头.jpg" alt="">
            </li>
            <li>
                <img src="img/小黄鸡1.png" alt="">
            </li>
            <li>
                <img src="img/狗头.jpg" alt="">
            </li>
        </ul>
    </div>

    <style>

        .banner .banner li img{
            width: 400px;
            height: 400px;
        }
        * {
            margin: 0;
            padding: 0;
        }

        .banner {
            /* padding: 0; */
            width: 100%;
            height: 1800px;
            position: relative;
            overflow: hidden;
        }

        .banner ul {
            width: 300%;
            position: absolute;
            left: 0;
            animation: banner 3s infinite;

        }

        /* img {
            width: 100px;
            height: 100px;
        } */

        .banner ul li {
            list-style: none;
            width: 33.3%;
            /* position: absolute; */
            float: left;
        }

        .banner li img {
            width: 100%;
        }

        @keyframes banner {
            0% {
                left: 0%;
            }

            50% {
                left: -100%;
            }

            100% {
                left: -200%;
            }
        }
    </style>
</body>

</html>